package com.kaiwukj.android.ufamily.mvp.contract;

import android.content.Context;

import com.kaiwukj.android.mcas.mvp.IModel;
import com.kaiwukj.android.mcas.mvp.IView;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseObjResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.requestbak.ReportRequest;
import com.kaiwukj.android.ufamily.mvp.http.entity.resultbak.ReportTypeResult;

import java.util.List;

import io.reactivex.Observable;

/**
 * @author Charles
 * @date 2019/8/22.
 * description：Kaiwu
 */
public interface ReportContract {

    interface View extends IView {
        Context getCtx();

        void getReportType(List<ReportTypeResult> data);

        void reportSuccess();
    }

    interface Model extends IModel {
        Observable<BaseObjResp<List<ReportTypeResult>>> requestReportType();

        Observable<BaseObjResp<Object>> postReport(ReportRequest reportRequest);
    }

}
